package com.darrenchan.spark

import scala.collection.mutable.HashMap
import scala.collection.mutable.{ArrayBuffer, ListBuffer}

/**
  * @Desc
  * @Author chenchi03
  * @CreateTime 2020-03-13 21:26
  */
object TestDemo {
    def main(args: Array[String]): Unit = {
        val s = Set(1,2,4)
        println(s(2))

        val list = new ListBuffer[Int]()
        val list2 = new ListBuffer[Int]
        val list3 = ListBuffer[Int]()

        println(list)
        println(list2)
        println(list3)


        val arr = new ArrayBuffer[Int]()
        val arr2 = new ArrayBuffer[Int]
        val arr3 = ArrayBuffer[Int]()

        arr.append(4)

        println(arr)
        println(arr2)
        println(arr3)

        val map = new HashMap[String, Int]()
        val map2 = new HashMap[String, Int]

        println(map)
        println(map2)


        for(i <- 0 until 1) {
            println(1)
        }
    }
}
